import request from '@/utils/request'

// 注册接口
export function reg(data) {
  return request({
    url: '/user/reguser',
    method: 'post',
    data
  })
}

// 登录接口api
export function login(data) {
  return request({
    url: "/user/login",
    method: 'post',
    data
  })
}

// 获取用户基本信息
export function getinfo(token) {
  return request({
    url: '/my/getinfo',
    method: 'post',
    params: { token }
  })
}